﻿using System;
using System.Collections.Generic;
using System.Web;
using Utils;

using Maticsoft.DBUtility;

/// <summary>
///unsubscribe 的摘要说明
/// </summary>
public partial class unsubscribe : FBasePage
{


    // Methods
    protected override void OnLoad(EventArgs e)
    {
        base.OnLoad(e);
        string str = Helper.GetString(base.Request["code"], string.Empty);
        if (str != string.Empty)
        {
            DbHelperSQL.ExecuteSql("delete from Mailer where Secret='" + str + "'");
            base.SetSuccess("退订成功，您不会收到每日团购信息了");
            base.Response.Redirect("index.aspx");
            base.Response.End();
        }
    }
}


